package com.kevin.netty.starter.preperties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@Component
@ConfigurationProperties(prefix = "netty")
public class NettyProperties {

    /**
     * Netty 服务端配置
     */
    private List<ServerProperties> servers = new ArrayList<>();

}
